<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  watch: {
    userId() {
      if (this.$store.state.user.id === '') {
        this.$store.dispatch('user/getInfo')
      }
    }
  }
}
</script>

